home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / swing / ToolTipManager$insideTimerAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.1 KB  |  35 lines

  1. package javax.swing;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5.  
  6. public class ToolTipManager$insideTimerAction implements ActionListener {
  7.    // $FF: synthetic field
  8.    final ToolTipManager this$0;
  9.  
  10.    protected ToolTipManager$insideTimerAction(ToolTipManager var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public void actionPerformed(ActionEvent var1) {
  15.       if (this.this$0.insideComponent != null && this.this$0.insideComponent.isShowing()) {
  16.          if (this.this$0.toolTipText == null && this.this$0.mouseEvent != null) {
  17.             this.this$0.toolTipText = this.this$0.insideComponent.getToolTipText(this.this$0.mouseEvent);
  18.             this.this$0.preferredLocation = this.this$0.insideComponent.getToolTipLocation(this.this$0.mouseEvent);
  19.          }
  20.  
  21.          if (this.this$0.toolTipText != null) {
  22.             this.this$0.showImmediately = true;
  23.             this.this$0.showTipWindow();
  24.          } else {
  25.             this.this$0.insideComponent = null;
  26.             this.this$0.toolTipText = null;
  27.             this.this$0.preferredLocation = null;
  28.             this.this$0.mouseEvent = null;
  29.             this.this$0.hideTipWindow();
  30.          }
  31.       }
  32.  
  33.    }
  34. }
  35.